package com.bkitmobile.kesu.appengine.web.client;

import com.bkitmobile.kesu.appengine.web.client.entity.ListOfPlace;
import com.bkitmobile.kesu.appengine.web.client.entity.LoginInfo;
import com.bkitmobile.kesu.appengine.web.client.entity.PlaceClient;
import com.bkitmobile.kesu.appengine.web.client.entity.UserInfo;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
	String doLogin(LoginInfo name) throws IllegalArgumentException;
	String checkLogin(String input) throws IllegalArgumentException;
	String doLogout(String input) throws IllegalArgumentException;
	String doRegister(UserInfo input) throws IllegalArgumentException;
	ListOfPlace getPlace(String usrName) throws IllegalArgumentException;
	String addPlace(PlaceClient place) throws IllegalArgumentException;
	UserInfo getUsrInfo(String usrName) throws IllegalArgumentException;
	String doUpdate(UserInfo usrName);
}
